<%--
  Created by IntelliJ IDEA.
  User: ihww
  Date: 15/3/30
  Time: 上午10:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>cec后台管理系统</title>
    <style type="text/css">
        body {
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #eee;
        }

        .form-signin {
            max-width: 330px;
            padding: 15px;
            margin: 0 auto;
        }

        .form-signin .form-signin-heading,
        .form-signin .checkbox {
            margin-bottom: 10px;
            margin-left: 20px;
        }

        .form-signin .checkbox {
            font-weight: normal;
        }

        .form-signin .form-control {
            position: relative;
            height: auto;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            padding: 10px;
            font-size: 16px;
        }

        .form-signin .form-control:focus {
            z-index: 2;
        }

        .form-signin input[type="text"] {
            margin-bottom: 10px;
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }

        .form-signin input[type="password"] {
            margin-bottom: 10px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

    </style>
    <link type="text/css" href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link type="text/css" href="/static/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
    <script charset="utf-8" src="/static/jquery/jquery.js"></script>
    <%--<script charset="utf-8" src="/static/bootstrap/js/bootstrap.min.js"></script>--%>
</head>
<body>


<div class="container">
    <form class="form-signin" role="form" action="login" method="post">
        <h2 class="form-signin-heading">Please sign in</h2>

        <div class="alert">
            <span style="color: #ff0000">${error}</span>
        </div>

        <input type="text" class="form-control" placeholder="用户名" name="username" required>
        <input type="password" class="form-control" placeholder="密码" required name="password">
        <input type="text" class="form-control" placeholder="验证码" name="captcha" required
               style="width: 150px;float: left">

        <div style="float: right;padding-right: 2px;padding-bottom: 10px">
            <img id="captcha" src="/Captcha.png" style="width: 120px;height: 44px" onclick="getCaptcha()">
        </div>

        <label class="checkbox" style="clear: both">
            <input type="checkbox" value="rememberMe" value="true"> Remember me
        </label>

        <button class="btn btn-lg btn-primary btn-block" type="submit" style="margin-top: 20px">Sign in</button>
    </form>

</div>

<script>
    function getCaptcha() {
        $("#captcha").attr("src", "/Captcha.png");
    }
</script>

</body>
</html>
